//
//  BSSFileManager.h
//  BrightSunnySky
//
//  Created by zhoujunchun on 2019/3/8.
//  Copyright © 2019 PURANG. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "BSSPersonModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BSSFileManager : NSFileManager

- (BOOL)checkUserInformationFileExist;
- (void)creatFileUserInformationFile;
- (NSMutableDictionary*)readUserInformationFile;
- (void)writeUserInformationTofileWithUserInformation:(NSMutableDictionary*)userInformation;
- (void)removeUserInformationFile;

+ (BSSFileManager*)shareBSSFileManager;

- (BSSPersonModel *)getLoginModel;

- (BOOL)getUserIsContainUsertype:(NSString *)userType;
//经纪人账户
- (BOOL)isPersonage;
//是否是商户
- (BOOL)isMerchant;
//后台用户
- (BOOL)isBackgroundt;
//企业账户
- (BOOL)isCompanyAccount;
/**性别  yes->男 no->女*/
- (BOOL)isPersonSex;
/**是否认证  yes->需认证 no->不需认证*/
- (BOOL)needIdCertified;
/**是否开启授信功能*/
- (BOOL)isOpenCreditOn;
//授信客户经理
- (BOOL)isCreditCustomerManager;
//授信经理
- (BOOL)isCreditManager;
//授信支行
- (BOOL)isCreditBranc;
//授信风控部
- (BOOL)isCreditRisk;
//授信信贷中心
- (BOOL)isCreditCenter;
//授信待审会
- (BOOL)isCreditCommittee;
//授信领导审批
- (BOOL)isCreditDirector;
//贷款客户经理
- (BOOL)isCustomerManager;
//贷款经理
- (BOOL)isLoanManager;
//贷款支行
- (BOOL)isLoanBranch;
//贷款风控部
- (BOOL)isLoanRisk;
//贷款信贷中心
- (BOOL)isLoanCenter;
//贷款待审会
- (BOOL)isLoanCommittee;
//贷款领导审批
- (BOOL)isLoanDirector;

- (BOOL)getUserPermission:(NSString *)permission;

@end

NS_ASSUME_NONNULL_END
